package com.dnjn.happiness.survey.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dnjn.happiness.common.core.constant.Constants;
import com.dnjn.happiness.survey.domain.TikuTags;
import com.dnjn.happiness.survey.mapper.TikuTagsMapper;
import com.dnjn.happiness.survey.service.ITikuTagsService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 题库类型Service业务层处理
 *
 * @author happiness
 * @date 2023-10-31
 */
@Service
public class TikuTagsServiceImpl extends ServiceImpl<TikuTagsMapper, TikuTags> implements ITikuTagsService {

    @Override
    public List<TikuTags> selectTikuTagsListByType(String tikuTypeSurvey) {
        return lambdaQuery().eq(TikuTags::getDeleted, Constants.UNDELETED).eq(TikuTags::getTikuType, tikuTypeSurvey).orderByDesc(TikuTags::getTikuTagsId).list();
    }
}
